package com.woniu.user.config;

import com.woniu.user.resolver.LoginUserHandleArgumentResolver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * @Title
 * @Author 武术有栖
 * @Description:
 */
@Configuration
public class WebMvcConfigOne implements WebMvcConfigurer {

    @Autowired
    private LoginUserHandleArgumentResolver loginUserHandleArgumentResolver;

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(loginUserHandleArgumentResolver);
    }
}
